{% extends "default.html" %}

{% load i18n %}
{% load jalali_view %}
{% load digg_paginator %}

{% if tagid %}
{% block custom_meta_keywords %},{{tag}},{% endblock custom_meta_keywords %}
{% endif %}

{% block custom_meta_description %}{% trans "Ads List" %}{% endblock custom_meta_description %}

{% if tagid %}
{% block custom_rss %}
<link rel="alternate" title='{% trans "AMSCMS Main Title" %} - {% trans "Latest Ads by Tag RSS" %} - {{ tag }}' href="{{ request.session.current_site_url }}/rss/ads/latest/tag/{{ tagid }}/" type="application/rss+xml"/>
{% endblock %}
{% endif %}


{% block title %}{% trans "Ads List" %}{% endblock %}
{% block page_title %}{% trans "Ads List" %}{% endblock %}

{% block page_content %}

{% if tagid %}
<!-- div style="float: left;">
	<a href="/rss/ads/latest/tag/{{ tagid }}/">
	<img src="/static/images/rss_red_32x32.png" />
	</a>
</div -->
{% endif %}

<div class="box">
			
	<div class="top">
		<div class="left"></div>
		<div class="right"></div>
		<div class="center">{% trans "Ads List" %}</div>
	</div>
	
	<div class="middle">
		<div class="explore">
		
			{% for ad in current_page.object_list %}
				
				<div class="item">{% include "ad/ad_box.html" %}</div>
				
				{% cycle "" "" "<br class='clear' />" %}
				
			{% endfor %}
			
			<br class="clear">
		</div>
		
	</div>
	
	<div class="bottom">
		<div class="left"></div><div class="right"></div><div class="center"></div>
	</div>
</div>
{% include "paginator.html" %}
<br class="clear">



{% endblock page_content %}
